package com.special.annotations.aspect;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

/**
 * @author liuYC
 * @ClassName AuthAspect
 * @Description TODO
 * @date 2021/5/6 23:22
 */
//@Component
@Aspect
public class AuthAspect {
//    切点描述方法
    @Before(value = "@within(com.special.annotations.annations.Login)||@annotation(com.special.annotations.annations.Login)")
    public void login() {
        validateLogin();
        }

    public void validateLogin(){
//        进行对应的方法的操纵进行定义
        System.out.println("我的切点处理方法已经生效了！");
    }
}
